//
//  CFPS.h
//  Mario_project
//
//  Created by Vincent Descreux on 20/05/13.
//  Copyright (c) 2013 Vincent Descreux. All rights reserved.
//

#ifndef __Mario_project__CFPS__
#define __Mario_project__CFPS__

#include <iostream>

#endif /* defined(__Mario_project__CFPS__) */

#ifndef _CFPS_H_
#define _CFPS_H_

#include <SDL/SDL.h>

class CFPS {
   public:
    static CFPS FPSControl;
    
    private:
    int OldTime;
    int LastTime;
    
    float SpeedFactor;
    
    int NumFrames;
    int Frames;
    
    public:
    CFPS();
    
    void OnLoop();
    
    public:
    int GetFPS();
    
    float GetSpeedFactor();
};

#endif
